# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1293190519.035128
_template_filename='/home/sunzheng/Projects/FidoWeb/FidoWeb_0.98/fidoweb/templates/map/maploc_topic.mako'
_template_uri='map/maploc_topic.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1

        c.jsFiles.append('/script/map/maploc_topic.js?v=12')
        
        
        # SOURCE LINE 3
        __M_writer(u'\n<style type="text/css">\n\t#button_add_post{\n\t\tfloat:right;\n\t\twidth:80px;\n\t\theight:25px;\n\t\tbackground:url(\'/image/global/button_add_post.png\');\n\t}\n\t#button_add_post:hover{background-position:0 -25px;}\n\t#link_return{\n\t\tfloat:left;\n\t\twidth:60px;\n\t\theight:25px;\n\t\tbackground:url(\'/image/global/button_return.png\');\n\t}\n\t#link_return:hover{background-position:0 -25px;}\n</style>\n<div class="page_variable">\n\t<div var_name="info" id="')
        # SOURCE LINE 21
        __M_writer(filters.decode.utf8(c.topic.id))
        __M_writer(u'" maploc_id="')
        __M_writer(filters.decode.utf8(c.maploc.id))
        __M_writer(u'" name="')
        __M_writer(filters.decode.utf8(c.maploc.name))
        __M_writer(u'" address="')
        __M_writer(filters.decode.utf8(c.maploc.address))
        __M_writer(u'"\n\t\ttopic_count="')
        # SOURCE LINE 22
        __M_writer(filters.decode.utf8(c.topicCount))
        __M_writer(u'" rate_count="')
        __M_writer(filters.decode.utf8(c.rateCount))
        __M_writer(u'" total_rate_score="')
        __M_writer(filters.decode.utf8(c.totalRateScore))
        __M_writer(u'"\n')
        # SOURCE LINE 23
        if c.loginUser != None :
            # SOURCE LINE 24
            __M_writer(u'\t\t\tmy_rating="')
            __M_writer(filters.decode.utf8(c.myRating))
            __M_writer(u'"\n')
            pass
        # SOURCE LINE 26
        __M_writer(u'\t></div>\n</div>\n<div id="page_bound">\n\t<a class="bshareDiv" href="http://www.bshare.cn/share">\u5206\u4eab\u6309\u94ae</a><script language="javascript" type="text/javascript" src="http://www.bshare.cn/button.js#uuid=&amp;bp=renren,sinaminiblog,qzone,douban,blog163,blogsina,kaixin001,bgoogle&amp;style=3&amp;fs=4&amp;textcolor=#FFF&amp;bgcolor=#ADADAD&amp;text=\u5206\u4eab\u5230..."></script>\n\t<div class="page_column_left_padding15">\n\t\t<div id="topic_count" align="center" style="background:url(\'/image/global/post_replies.png\') no-repeat scroll 0 0 transparent;width:46px;height:52px;position:absolute;top:-20px;right:-20px;color:#FFFFFF;font-size:18px;padding-left:3px;padding-top:11px;">\n\t\t\t')
        # SOURCE LINE 32
        __M_writer(filters.decode.utf8(c.postCount))
        __M_writer(u'\n\t\t</div>\n\t\t<div class="top"></div>\n\t\t<div class="content">\n\t\t\t<h1>')
        # SOURCE LINE 36
        __M_writer(filters.decode.utf8(c.topic.title))
        __M_writer(u'</h1>\n\t\t\t<div id="topic_quote" style="float:left;width:40px;">\n\t\t\t\t<img src="/image/global/sign_quote.gif">\n\t\t\t</div>\n\t\t\t<div id="topic_main" style="float:left;padding-left:10px;width:470px;">\n\t\t\t\t<h3>\n\t\t\t\t\t<span style="float:left;">')
        # SOURCE LINE 42
        __M_writer(filters.decode.utf8(c.topic.createTime.strftime('%Y-%m-%d %H:%M:%S')))
        __M_writer(u'</span>\n\t\t\t\t\t<span style="float:left;padding-left:20px;">')
        # SOURCE LINE 43
        __M_writer(filters.decode.utf8(c.topic.user.name))
        __M_writer(u'</span>\n\t\t\t\t</h3>\n\t\t\t\t<div id="topic_content" style="clear:both;padding-left:10px;">')
        # SOURCE LINE 45
        __M_writer(filters.decode.utf8(c.topic.content))
        __M_writer(u'</div>\n\t\t\t</div>\n\t\t\t<div id="postlist" style="padding-top:30px;clear:both;"></div>\n\t\t\t<div id="postlist_item_example" class="hidden_example">\n\t\t\t\t<div style="border-top:#CCCCCC 1px solid;line-height:14px;clear:both;padding:7px;">\n\t\t\t\t\t<div id="post_content"></div>\n\t\t\t\t\t<div style="color:#999999;padding-top:5px;width:100%;position:relative;">\n\t\t\t\t\t\t<span id="post_date" style="display:inline-block;"></span>\n\t\t\t\t\t\t<span id="post_user" style="padding-left:20px;display:inline-block;"></span>\n\t\t\t\t\t\t<span id="post_user_id" style="display:none;"></span>\n')
        # SOURCE LINE 55
        if c.loginUser != None :
            # SOURCE LINE 56
            __M_writer(u'\t\t\t\t\t\t\t<a id="post_reply_link" href="javascript:void(0);" style="position:absolute;right:5px;">\u56de\u590d</a>\n')
            pass
        # SOURCE LINE 58
        __M_writer(u'\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="add_post" style="width:526px;padding-top:30px;width:100%;clear:both;">\n\t\t\t\t<h2>\u53d1\u8d77\u56de\u590d</h2>\n\t\t\t\t<div id="post_bound" style="padding-top:5px;">\n')
        # SOURCE LINE 64
        if c.loginUser == None :
            # SOURCE LINE 65
            __M_writer(u'\t\t\t\t\t\t<div style="padding-left:10px;">\u767b\u5f55\u540e\u53d1\u8d77\u56de\u590d\u3002</div>\n')
            # SOURCE LINE 66
        else :
            # SOURCE LINE 67
            __M_writer(u'\t\t\t\t\t\t<table align="center" style="width:100%;">\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t<tr><td><div id="post_content" style="">\n\t\t\t\t\t\t\t\t\t<textarea id="input_content" name="content" style="width:100%;height:70px;"></textarea>\n\t\t\t\t\t\t\t\t</div></td></tr>\n\t\t\t\t\t\t\t\t<tr><td><a href="javascript:void(0);" id="button_add_post"></a></td></tr>\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n')
            pass
        # SOURCE LINE 76
        __M_writer(u'\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="padding-top:30px;clear:both;"></div>\n\t\t</div>\n\t\t<div class="bottom"></div>\n\t</div>\n\t<div class="page_column_right_padding_left30">\n\t\t<div style="height:20px;clear:both;"></div>\n\t\t<a id="link_return" href="/map/maploc?id=')
        # SOURCE LINE 84
        __M_writer(filters.decode.utf8(c.maploc.id))
        __M_writer(u'"></a>\n\t\t<div style="height:10px;clear:both;"></div>\n\t\t')
        # SOURCE LINE 86
        runtime._include_file(context, u'maploc_module_locinfo.mako', _template_uri)
        __M_writer(u'\n')
        # SOURCE LINE 87
        if c.maploc.store != None :
            # SOURCE LINE 88
            __M_writer(u'\t\t\t<div style="height:30px;clear:both;"></div>\n\t\t\t')
            # SOURCE LINE 89
            runtime._include_file(context, u'maploc_module_discounts.mako', _template_uri)
            __M_writer(u'\n')
            pass
        # SOURCE LINE 91
        __M_writer(u'\t\t<div style="height:30px;clear:both;"></div>\n\t\t')
        # SOURCE LINE 92
        runtime._include_file(context, u'maploc_module_gallery.mako', _template_uri)
        __M_writer(u'\n\t</div>\n</div>\n \n')
        return ''
    finally:
        context.caller_stack._pop_frame()


